package io.kiki.sba.registry.server.clientInterface.strategy.impl;


import io.kiki.sba.registry.common.model.constants.ValueConstants;
import io.kiki.sba.registry.core.model.SyncConfigResponse;
import io.kiki.sba.registry.server.clientInterface.strategy.SyncConfigHandlerStrategy;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


public class DefaultSyncConfigHandlerStrategy implements SyncConfigHandlerStrategy {
    @Override
    public void handleSyncConfigResponse(SyncConfigResponse syncConfigResponse) {
        List<String> list = new ArrayList<>(Arrays.asList(ValueConstants.DEFAULT_DATA_CENTER));
        syncConfigResponse.setAvailableSegments(list);
    }
}
